<?php /* Smarty version 2.6.19, created on 2008-06-18 11:53:06
         compiled from admin/song/update_form.tpl */ ?>
<div class="main-body category">
    <div class="main-header pkg">  
        <div class="title">Sửa thông tin bài hát</div>
        <div class="button"><a href="<?php echo $this->_tpl_vars['config']['app_root_url']; ?>
?module=song" class="buttonLink" >Trở về danh sách</a></div>
    </div>
        <form id="create-genre-form" method="post" action="<?php echo $this->_tpl_vars['config']['app_root_url']; ?>
?module=song&act=doupdate&id=<?php echo $this->_tpl_vars['data']['id']; ?>
" class="lbpdc" enctype="multipart/form-data">
                <div class="input-row">
                    <div class="label">Tên bài hát</div>
                    <div class="field">
                        <input type="text" name="song_name" class="input" rel="2" value="<?php echo $this->_tpl_vars['data']['title']; ?>
"/> 
                    </div>
                </div>
                <div class="input-row">
                    <div class="label">File nhạc</div>
                    
                    <div class="field">
                        <input type="file" name="song_filename" class="input" rel="2"/> 
                    </div>
                </div>
                <div class="input-row">
                    <div class="label">Đường dẫn từ ngoài vào</div>
                    
                    <div class="field">
                        <input type="text" name="song_filedir" class="input" value="<?php echo $this->_tpl_vars['data']['filedir']; ?>
"/>
                    </div>
                </div>
                 <div class="input-row">
                    <div class="label">Thuộc Album</div>
                    <div class="field">
                        <select name="song_album" class="select">
                            <option value="0" >- - Chọn album - -</option>
                            <?php $_from = $this->_tpl_vars['album']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['album_id'] => $this->_tpl_vars['album']):
?>
                            <option value=<?php echo $this->_tpl_vars['album']['id']; ?>
 <?php if ($this->_tpl_vars['data']['aid'] == $this->_tpl_vars['album']['id']): ?>selected ="selected"<?php endif; ?>><?php echo $this->_tpl_vars['album']['name']; ?>
</option>
                            <?php endforeach; endif; unset($_from); ?>
                        </select>   
                    </div>
                </div>
                <div class="input-row">
                    <div class="label">Thể loại</div>
                    <div class="field">
                        <select name="song_genre" class="select">
                            <option value="0" >- - Chọn thể loại - -</option>
                            <?php $_from = $this->_tpl_vars['genre']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['genre_id'] => $this->_tpl_vars['genre']):
?>
                            <option value=<?php echo $this->_tpl_vars['genre']['id']; ?>
 <?php if ($this->_tpl_vars['data']['typeid'] == $this->_tpl_vars['genre']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['genre']['name']; ?>
</option>
                            <?php endforeach; endif; unset($_from); ?>
                        </select>   
                    </div>
                </div>
                 <div class="input-row">
                    <div class="label">Ca sỹ thể hiện</div>
                    <div class="field">
                        <select name="song_singer" class="select">
                            <option value="0" >- - Chọn ca sỹ - -</option>
                            <?php $_from = $this->_tpl_vars['singer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['singer_id'] => $this->_tpl_vars['singer']):
?>
                            <option value=<?php echo $this->_tpl_vars['singer']['id']; ?>
 <?php if ($this->_tpl_vars['data']['singerid'] == $this->_tpl_vars['singer']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['singer']['name']; ?>
</option>
                            <?php endforeach; endif; unset($_from); ?>
                        </select>   
                    </div>
                </div>
                 <div class="input-row">
                    <div class="label">Nhạc sỹ sáng tác</div>
                    <div class="field">
                        <select name="song_artist" class="select">
                            <option value="0" >- - Chọn nhạc sỹ - -</option>
                            <?php $_from = $this->_tpl_vars['artist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['artist_id'] => $this->_tpl_vars['artist']):
?>
                            <option value=<?php echo $this->_tpl_vars['artist']['id']; ?>
 <?php if ($this->_tpl_vars['data']['artistid'] == $this->_tpl_vars['artist']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['artist']['name']; ?>
</option>
                            <?php endforeach; endif; unset($_from); ?>
                        </select>   
                    </div>
                </div>
                 <div class="input-row">
                    <div class="label">Nghe thử</div>
                    <div class="field">
                        <embed 
                        src="../includes/media-player/mediaplayer.swf" 
                        width="250" 
                        height="240"
                        allowscriptaccess="always" 
                        allowfullscreen="true" 
                        flashvars="width=250&height=240&file=../data/music/song/<?php echo $this->_tpl_vars['data']['filename']; ?>
&backcolor=0xCC0000&frontcolor=0xffffff&lightcolor=0x88BB00&image=../data/avatar/singer/<?php echo $this->_tpl_vars['data']['avatar']; ?>
&searchbar=false" 
                        /> 
                    </div>
                </div>
                <div class="input-row">
                    <div class="label">Bài hát nổi bật (Feature)</div>
                    <div class="field">
                        <input type="checkbox" name="song_feature" <?php if ($this->_tpl_vars['data']['feature'] == 1): ?>checked="checked"<?php endif; ?> />
                    </div>
                </div>
                <div class="input-row">
                    <div class="label">Trạng thái</div>
                    <div class="field">
                        <input type="checkbox" name="song_status" <?php if ($this->_tpl_vars['data']['status'] == 1): ?>checked="checked"<?php endif; ?> />
                    </div>
                </div>
                <div class="submit-row">
                    <input type="submit" value="Cập nhật" class="button" />
                </div>
        </form>
        <div id="creategenre"></div>
</div>  